# arr = [1,2,3]
# print(arr[1:])
# print(arr)
# 不改变原数组

# d = {'a':1}
# print(d['a'])
# print(d.a)
# 字典访问用d['a']

# class Apple():
#   def __init__(self,name):
#     self.name = name
# apple = Apple("红苹果")
# print(apple.name)
# print(apple["name"])
# 实例访问用apple.name

# li = ['1',2]
# print('1' in li)
# print(2 in li)
# print(3 in li)
# 通过in判断某个值是否属于list

# class A():
#   tools = []
#   agents = []
#   def __init__(self):
#     self.tools = []
#     self.agents = []

# obj = A()
# print(obj.tools)
# print(obj.agents)

# d = {"a": 123, "b": "kebo"}
# a, b = d
# print(a, b)

d = {"a": 123, "b": "kebo"}
a = d["a"]
aa = d["aa"]
print(a, aa)
